home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 5
/
Amiga Plus Sonderheft 1996 #5.iso
/
programme
/
raystrom_v1.2
/
examples
/
arexx
/
sun.ray
< prev
next >
Wrap
Text File
|
1986-11-26
|
1KB
|
63 lines
/***************
* NAME: sun.ray
* DESCRIPTION: Sun coming up behind a planet with lens flares
* AUTHOR: Andreas Heumann
***************/
signal on error
options results
IF ~show('P','RAYSTORM') THEN DO
address COMMAND 'stack 8192'
address COMMAND 'run >NIL: <NIL: /RayStorm'
address COMMAND 'stack 4096'
address COMMAND WaitForPort RAYSTORM
END
address RAYSTORM
'TEXTUREPATH /textures'
'OBJECTPATH /objects'
'BRUSHPATH /brushes/backdrops'
'SETSCREEN 160 128'
'SETCAMERA <50,0,-500> <50,0,0> <0,1,0> 25 20'
'SETWORLD [0,0,0] BACKDROP=stars.png'
'POINTLIGHT <0,0,150> [255,150,100]'
'POINTLIGHT <0,0,300> [255,150,100]'
'LOADOBJ sun_disk.iob'
'NEWSURFACE PLANET BRIGHT'
'DIFFUSE [5,10,15]'
'SPHERE PLANET <45,-45,90> 50'
'NEWSURFACE SUN BRIGHT'
'SPHERE SUN <0,0,0> 15'
'NEWSURFACE FLARE BRIGHT'
'DIFFUSE [255,150,100]'
'SPECULAR [0,0,0]'
'TRANSPAR [235,235,235]'
'SPHERE FLARE <50,0,0> 5'
'SPHERE FLARE <80,0,0> 15'
'SPHERE FLARE <90,0,0> 8'
STARTRENDER
'SAVEPIC sun.iff'
CLEANUP
exit 0
error:
say "Error" rc "in line" sigl ":"
GETERRORSTR rc
say result
exit 0